package com.yiren.backstage.config.bean.device;

import com.yiren.backstage.config.bean.BaseParamConfigBean;
import com.yiren.backstage.currency.enums.CarStateNameEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xiaozan
 * @Description 车辆信号配置 对象
 * @Date 2022/3/30
 */
public class CarSignalConfigBean extends BaseParamConfigBean {

    private Map<String, Object> map;

    public static CarSignalConfigBean getDefaultCarSignalConfig() {
        CarSignalConfigBean carSignalConfig = new CarSignalConfigBean();
        Map<String, Object> map = new HashMap<>();
        map.put(CarStateNameEnum.DRIVING_LAMP.toString(), true);
        map.put(CarStateNameEnum.CAUTION_LIGHT.toString(), true);
        map.put(CarStateNameEnum.DISTANCE_LIGHT.toString(), true);
        map.put(CarStateNameEnum.PASSING_LIGHT.toString(), true);
        map.put(CarStateNameEnum.FOGLIGHT.toString(), true);
        map.put(CarStateNameEnum.LEFT_LIGHT.toString(), true);
        map.put(CarStateNameEnum.RIGHT_LIGHT.toString(), true);
        map.put(CarStateNameEnum.CAR_HEAD_LEFT.toString(), true);
        map.put(CarStateNameEnum.CAR_TAIL_RIGHT.toString(), true);
        map.put(CarStateNameEnum.CAR_HEAD_RIGHT.toString(), true);
        map.put(CarStateNameEnum.CAR_TAIL_LEFT.toString(), true);
        map.put(CarStateNameEnum.REARVIEW_MIRROR.toString(), true);
        map.put(CarStateNameEnum.REFLECTOR_MIRROR.toString(), true);
        map.put(CarStateNameEnum.SEAT.toString(), true);
        map.put(CarStateNameEnum.FINGERPRINT_INSTRUMENT.toString(), true);
        map.put(CarStateNameEnum.CAR_DOOR.toString(), true);
        map.put(CarStateNameEnum.CAR_KEY.toString(), true);
        map.put(CarStateNameEnum.RAIN_WIPPER.toString(), true);
        map.put(CarStateNameEnum.SAFETY_BELT.toString(), true);
        map.put(CarStateNameEnum.PARKING_BRAKE.toString(), true);
        map.put(CarStateNameEnum.FOOT_BRAKE.toString(), false);
        map.put(CarStateNameEnum.SEPARATION_REUNION.toString(), true);
        map.put(CarStateNameEnum.HORN.toString(), true);
        map.put(CarStateNameEnum.SPEED.toString(), 14);
        map.put(CarStateNameEnum.ROTATE_SPEED.toString(), 30);
        carSignalConfig.setMap(map);
        return carSignalConfig;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }


}
